package com.bwie.auth.feign;

import com.bwie.common.domain.Admin;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author：作者姓名
 * @Package：com.bwie.auth.feign
 * @Project：_yk
 * @name：AdminFeign
 * @Date：2024/6/17 9:26
 */
@FeignClient(value = "bwie-system",fallbackFactory = Factory.class)
public interface AdminFeign {

    @PostMapping("/User/toUser")
    public Result<Admin> FindAll(@RequestParam String userName);
}
